package kr.ragne.framework;

import android.graphics.Bitmap;
import android.graphics.Canvas;

public class GraphicObject {
	protected Bitmap bitmap;
	protected int mX;
	protected int mY;
	//생성자
	public GraphicObject(Bitmap bitmap) {
		this.bitmap = bitmap;
		mX = 0;
		mY = 0;
	}
	// 이미지를 그림
	public void Draw(Canvas canvas){
		canvas.drawBitmap(bitmap, mX, mY, null);
	}
	// 좌표 설정
	public void SetPosition(int x, int y){
		mX = x;
		mY = y;
	}
	// X좌표값 반환
	public int getX() {
		return mX;
	}
	// Y좌표값 반환
	public int getY() {
		return mY;
	}
}
